import request from "@/utils/request";
import requestMock from "@/utils/requestMock";

// 分别暴露

// 获取三级分类列表
// export const reqGetBaseCategoryList = () => {
//   return axios({
//     method: "GET",
//     // 代理之前
//     // url: "http://39.98.123.211/api/product/getBaseCategoryList",
//     // 代理之后
//     // url: "http://localhost:8081/api/product/getBaseCategoryList",
//     url: "/api/product/getBaseCategoryList",
//   });
// };

export const reqGetBaseCategoryList = () => {
  return request({
    method: "GET",
    url: "/product/getBaseCategoryList",
  });
};

// 获取轮播图图片
export const reqGetBanners = () => {
  return requestMock({
    method: "GET",
    url: "/getBanners",
  });
};

export const reqGetFloors = () => {
  return requestMock({
    method: "GET",
    url: "/getFloors",
  });
};
